<gm:page title="Sample - Maps Mashup" authenticate="false">

  <!--
    The mashup application demonstrates taking a external RSS feed with
    geo-location information and mapping it on a Google Map. Interaction
    between a list and a map is also demonstrated via the handleEvent tag.
    @author: GME Team
  -->
<table border="0" cellpadding="0" cellspacing="0" width="400">
<tbody>
<tr>
<td valign="top">
<a href="http://www.eren.jcyl.es/">EREN</a> | <a href="http://www.jcyl.es/">JCyL</a><br/>
</td>
<td style="TEXT-ALIGN:right" valign="top">
<a href="http://davidlopezberzosa.googlepages.com/Solar_Regimen_Especial_mod.kml">
<img src="http://www.google.com/intl/ru_ALL/mapfiles//ms/view_as_kml.png"> Energía Solar. Régimen especial</a><br/>
</td>
</tr>
</tbody>
</table>

<br/>


  <table width="100%">
    <tr>
      <td style="padding-right:10px; width:250px" valign="top">
        <gm:list id="myList" data="http://davidlopezberzosa.googlepages.com/eren_solar_especial4.xml"
            pagesize="10" template="myListTemplate">
          <gm:handleEvent event="select" src="myMap"/>
        </gm:list>
      </td>
      <td valign="top">
        <gm:map id="myMap" style="border:solid black 1px" height="700px" width="1000px"
           zoom="7" control="large" 
            maptypes="true" data="${myList}" latref="geo:lat" lngref="geo:long"
            infotemplate="myMapDetailsTemplate">
          <gm:handleEvent event="select" src="myList"/>
        </gm:map>
      </td>
    </tr>    
  </table>

  <gm:template id="myListTemplate">
    <table class="blue-theme" style="width:150px">
      <tr repeat="true">
        <td><gm:text ref="atom:title"/></td>
      </tr>
      <tfoot>
        <tr>
          <td align="center"><gm:pager compact="true"/></td>
        </tr>
      </tfoot>
    </table>
  </gm:template>

  <gm:template id="myMapDetailsTemplate">
    <div repeat="true">
      <b><gm:text ref="atom:title"/></b><br/>
      Lat: <gm:text ref="geo:lat"/><br/>
      Long: <gm:text ref="geo:long"/><br/>
      Energía producida (2005):<gm:text ref="atom:power_generation_2005"/>MWh<br/>
      Energía producida (2006):<gm:text ref="atom:power_generation_2006"/>MWh<br/>
    </div>
  </gm:template>

</gm:page>
